package com.atguigu.yygh.user.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.model.user.UserInfo;
import com.atguigu.yygh.vo.user.LoginVo;
import com.atguigu.yygh.vo.user.UserAuthVo;
import com.atguigu.yygh.vo.user.UserInfoQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;


import java.util.Map;

public interface UserInfoService extends IService<UserInfo> {

     Map<String, Object> login(LoginVo loginVo);

    UserInfo getByOpenid(String openId);

    Map<String, Object> loginByOpenId(LoginVo loginVo);

    //用户认证
    void userAuth(Long userId, UserAuthVo userAuthVo);

    IPage<UserInfo> selectPage(Page<UserInfo> pageParam, UserInfoQueryVo userInfoQueryVo);

    void lock(Integer id, Integer state);

    UserInfo show(Integer id);

    void approval(Integer id, Integer state);
}
